package com.alibaba.day0318yk.service;

import com.alibaba.day0318yk.mapper.KcMapper;
import com.alibaba.day0318yk.pojo.Kc;
import com.alibaba.day0318yk.pojo.Kcmc;
import com.alibaba.day0318yk.pojo.Stu;
import com.alibaba.day0318yk.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: Wang
 * @create: 2024-03-18 09:29
 **/
@Service
public class KcServiceImpl implements KcService {

    @Autowired
    private KcMapper kcMapper;


    @Override
    public User login(User user) {
        return kcMapper.login(user);
    }

    @Override
    public List<Kc> list(Kc kc) {
        return kcMapper.list(kc);
    }

    @Override
    public List<Kcmc> selectName() {
        return kcMapper.selectName();
    }

    @Override
    public Kc selectkcById(Integer id, Integer id1) {
        return kcMapper.selectById(id,id1);
    }

    @Override
    public Integer insertById(Integer id, Integer id1) {
        return kcMapper.insertByid(id,id1);
    }

    @Override
    public Integer deleteById(Integer id, Integer id1) {
        return kcMapper.deleteById(id,id1);
    }

    @Override
    public List<Kc> show(Integer id) {
        return kcMapper.show(id);
    }

    @Override
    public List<Kc> sele(Integer id) {
        return kcMapper.sele(id);
    }

    @Override
    public List<Stu> seleMid(Integer id) {
        return kcMapper.seleMid(id);
    }


}
